package com.guanyua.eims.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guanyua.eims.pojo.GoodsInfoDTO;
import com.guanyua.eims.pojo.goods.GoodsInfo;
import com.guanyua.eims.dao.GoodsInfoMapper;
import com.guanyua.eims.service.GoodsInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商品-信息 服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-10-18
 */
@Service
public class GoodsInfoServiceImpl extends ServiceImpl<GoodsInfoMapper, GoodsInfo> implements GoodsInfoService {

    @Autowired
    GoodsInfoMapper goodsInfoMapper;

    /**
     * 获取商品分页列表
     */
    @Override
    public IPage<GoodsInfoDTO> getGoodsPage(Page page) {
        IPage<GoodsInfoDTO> iPage = goodsInfoMapper.getGoodsList(page);

        return iPage;
    }

}
